import request from '@/utils/request'
/******
 获取所有洗护服务
 *****/
export const servicesGetAllWashingServices = (storeId) => {
  return request({
    url: `hema/services/list`,
    method: 'POST',
    data:{
      storeId
    }
  })
}
/******
 获取所有洗护服务
 *****/
export const allLargeListHema = (storeId) => {
  return request({
    url: `/hema/type/allLargeList`,
    method: 'get',
    data:{
      storeId
    }
  })
}
/******
 获取到的分类
 *****/
export const typeQryByStoreld= (data) => {
  return request({
    url: `hema/type/qryByStoreId`,
    method: 'post',
    data
  })
}
/******
 查询洗护保价
 *****/
export const feeConfigQryInsuranceFeeConfig= (data) => {
  return request({
    url: `/hema/feeConfig/qryInsuranceFeeConfig`,
    method: 'post',
    data
  })
}
/******
 衣柜类型选择
 *****/
// export const dictDataList= (data) => {
//   return request({
//     url: `/system/dict/data/list`,
//     method: 'post',
//     data
//   })
// }
/******
 确认订单
 *****/
export const customerOrderAction= (data) => {
  return request({
    url: `/converged/customer/orderAction`,
    method: 'post',
    data
  })
}
/******
 订单号查询订单详情查询
 *****/
export const customerQryOrderDetails= (orderId) => {
  return request({
    url: `/converged/customer/qryOrderDetails/${orderId}`,
    method: 'get',
  })
}

/******
 物流公司查询
 *****/
export const dictDataList= (data) => {
  return request({
    url: `/system/dict/data/list`,
    method: 'get',
    data
  })
}
/******
 更多（店铺/衣柜）
 *****/
export const storeQryIndexList= (data) => {
  return request({
    url: `/index/store/qryIndexList`,
    method: 'post',
    data
  })
}
/******
 订单金额计算
 *******/
export const customerCalculate= (data) => {
  return request({
    url: `/converged/customer/calculate`,
    method: 'post',
    data
  })
}
/******
 计算不同支付方式实付价格
 *******/
export const customerPayCalculate= (data) => {
  return request({
    url: `/converged/customer/pay/calculate`,
    method: 'post',
    data
  })
}

/******
 售后 返洗/退款
 *******/
export const customerAddAfterSales= (data) => {
  return request({
    url: `/converged/customer/addAfterSales`,
    method: 'post',
    data
  })
}
/******
 确认签收
 *******/
// export const customerConfirmReceipt= (data) => {
//   return request({
//     url: `/converged/customer/confirmReceipt`,
//     method: 'post',
//     data
//   })
// }
/******
 获取洗护须知
 *******/
export const agreementGetAgreementTitle= (data) => {
  return request({
    url: `/system/agreement/getAgreementTitle`,
    method: 'post',
    data
  })
}
/******
 获取店铺协议详细信息
 *******/

export const protocolDetail= (storeId) => {
  return request({
    url: `/hema/protocol/detail/${storeId}`,
    method: 'get',
  })
}

